package com.io.readers;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 * explore the program
 * 
 * @author Administrator
 * 
 */
public class readerCls {
	public static void main(String[] args) {
		String str = new String("teststringhelloworld");
		try {
			BufferedReader reader = new BufferedReader(new FileReader("c:\\test\\test.txt"));
			try {
				while ((str = reader.readLine()) != null)
					System.out.println(str);
			} catch (IOException e) {
				e.printStackTrace();
			}
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
	}
}
